import { exInput, exSelect, exSwitch } from '../../extension/index'
export default {
  VERSION: '20220408',
  type: 'uiScanInput',
  name: '扫码输入',
  icon: 'checkbox-blank-line',
  svg: 'saomashuru',
  extension: {
    focus: exSwitch('初始化聚焦', true),
    height: exInput('高度', 30),
    background: {
      type: 'exSetChartColor',
      name: '背景色',
      value: 'rgba(0,0,0,0)',
    },
    color: {
      type: 'exSetChartColor',
      name: '字体颜色',
      value: 'rgba(0,0,0,0)',
    },
    weight: exSwitch('是否加粗', true),
    size: exInput('字体大小', 15),
    disabled: exSwitch('初始化禁用', false),
    align: exSelect('内容位置', 'left', [
      {
        label: '左',
        value: 'left',
      },
      {
        label: '中',
        value: 'center',
      },
      {
        label: '右',
        value: 'right',
      },
    ]),
  },
  list: [],
  interaction: [],
}
